package PontoEletronico;

import java.awt.Graphics;  
import javax.swing.JLabel;

@SuppressWarnings("serial")
public class Letreiro extends JLabel {
	protected double addX=215;  
	protected double vel=0.7;

	@Override  
	public void paintComponent(Graphics g) {
			g.translate((int)addX , 0);  
			super.paintComponent(g);  
			repaint(5);  
			addX = addX - vel;
			if(addX <= getBounds().getWidth()*-1){
				this.setVisible(false);
				addX=215;
				Principal.btX();
			}
	}
}

